package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@ToString
@ApiModel("")
@Table(name = "tb_order_item")
public class TbOrderItem implements Serializable {
    /**
     * ID
     */
    @ApiModelProperty(value = "ID")
    @NotEmpty(message="ID不能为空")
    @Id
    private String id;

    /**
     * 1级分类
     */
    @ApiModelProperty(value = "1级分类")
    @Column(name = "category_id1")
    private Integer categoryId1;

    /**
     * 2级分类
     */
    @ApiModelProperty(value = "2级分类")
    @Column(name = "category_id2")
    private Integer categoryId2;

    /**
     * 3级分类
     */
    @ApiModelProperty(value = "3级分类")
    @Column(name = "category_id3")
    private Integer categoryId3;

    /**
     * SPU_ID
     */
    @ApiModelProperty(value = "SPU_ID")
    @Column(name = "spu_id")
    private String spuId;

    /**
     * SKU_ID
     */
    @ApiModelProperty(value = "SKU_ID")
    @NotEmpty(message="SKU_ID不能为空")
    @Column(name = "sku_id")
    private String skuId;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    @NotEmpty(message="订单ID不能为空")
    @Column(name = "order_id")
    private String orderId;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String name;

    /**
     * 单价
     */
    @ApiModelProperty(value = "单价")
    private Integer price;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Integer num;

    /**
     * 总金额
     */
    @ApiModelProperty(value = "总金额")
    private Integer money;

    /**
     * 实付金额
     */
    @ApiModelProperty(value = "实付金额")
    @Column(name = "pay_money")
    private Integer payMoney;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    private String image;

    /**
     * 重量
     */
    @ApiModelProperty(value = "重量")
    private Integer weight;

    /**
     * 运费
     */
    @ApiModelProperty(value = "运费")
    @Column(name = "post_fee")
    private Integer postFee;

    /**
     * 是否退货
     */
    @ApiModelProperty(value = "是否退货")
    @Column(name = "is_return")
    private String isReturn;

    /**
     * 获取ID
     *
     * @return id - ID
     */
    public String getId() {
        return id;
    }

    /**
     * 设置ID
     *
     * @param id ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取1级分类
     *
     * @return category_id1 - 1级分类
     */
    public Integer getCategoryId1() {
        return categoryId1;
    }

    /**
     * 设置1级分类
     *
     * @param categoryId1 1级分类
     */
    public void setCategoryId1(Integer categoryId1) {
        this.categoryId1 = categoryId1;
    }

    /**
     * 获取2级分类
     *
     * @return category_id2 - 2级分类
     */
    public Integer getCategoryId2() {
        return categoryId2;
    }

    /**
     * 设置2级分类
     *
     * @param categoryId2 2级分类
     */
    public void setCategoryId2(Integer categoryId2) {
        this.categoryId2 = categoryId2;
    }

    /**
     * 获取3级分类
     *
     * @return category_id3 - 3级分类
     */
    public Integer getCategoryId3() {
        return categoryId3;
    }

    /**
     * 设置3级分类
     *
     * @param categoryId3 3级分类
     */
    public void setCategoryId3(Integer categoryId3) {
        this.categoryId3 = categoryId3;
    }

    /**
     * 获取SPU_ID
     *
     * @return spu_id - SPU_ID
     */
    public String getSpuId() {
        return spuId;
    }

    /**
     * 设置SPU_ID
     *
     * @param spuId SPU_ID
     */
    public void setSpuId(String spuId) {
        this.spuId = spuId;
    }

    /**
     * 获取SKU_ID
     *
     * @return sku_id - SKU_ID
     */
    public String getSkuId() {
        return skuId;
    }

    /**
     * 设置SKU_ID
     *
     * @param skuId SKU_ID
     */
    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    /**
     * 获取订单ID
     *
     * @return order_id - 订单ID
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 设置订单ID
     *
     * @param orderId 订单ID
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取商品名称
     *
     * @return name - 商品名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置商品名称
     *
     * @param name 商品名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取单价
     *
     * @return price - 单价
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 设置单价
     *
     * @param price 单价
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    /**
     * 获取数量
     *
     * @return num - 数量
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 设置数量
     *
     * @param num 数量
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 获取总金额
     *
     * @return money - 总金额
     */
    public Integer getMoney() {
        return money;
    }

    /**
     * 设置总金额
     *
     * @param money 总金额
     */
    public void setMoney(Integer money) {
        this.money = money;
    }

    /**
     * 获取实付金额
     *
     * @return pay_money - 实付金额
     */
    public Integer getPayMoney() {
        return payMoney;
    }

    /**
     * 设置实付金额
     *
     * @param payMoney 实付金额
     */
    public void setPayMoney(Integer payMoney) {
        this.payMoney = payMoney;
    }

    /**
     * 获取图片地址
     *
     * @return image - 图片地址
     */
    public String getImage() {
        return image;
    }

    /**
     * 设置图片地址
     *
     * @param image 图片地址
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 获取重量
     *
     * @return weight - 重量
     */
    public Integer getWeight() {
        return weight;
    }

    /**
     * 设置重量
     *
     * @param weight 重量
     */
    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    /**
     * 获取运费
     *
     * @return post_fee - 运费
     */
    public Integer getPostFee() {
        return postFee;
    }

    /**
     * 设置运费
     *
     * @param postFee 运费
     */
    public void setPostFee(Integer postFee) {
        this.postFee = postFee;
    }

    /**
     * 获取是否退货
     *
     * @return is_return - 是否退货
     */
    public String getIsReturn() {
        return isReturn;
    }

    /**
     * 设置是否退货
     *
     * @param isReturn 是否退货
     */
    public void setIsReturn(String isReturn) {
        this.isReturn = isReturn;
    }
}